package com.eshop.controller;

import com.eshop.pojo.User;
import com.eshop.service.UserService;
import com.eshop.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/userInfo")
public class UserInfoController {
    @Autowired
    UserService userService;
    @GetMapping("/getPage")
    public ResultVo getPage(){
        List<User> list = userService.list();
        return ResultVo.success(list);
    }

}
